//
//  SMUrlMacro.h
//  DiDi
//
//  Created by huangtie on 2017/3/1.
//  Copyright © 2017年 Sinmore. All rights reserved.
//

#ifndef SMUrlMacro_h
#define SMUrlMacro_h

#if DEBUG
#define SM_Host(url,fmt,...) [NSString stringWithFormat:@"http://118.89.246.149:8181%@" fmt, url, ##__VA_ARGS__]
#else
#define SM_Host(url,fmt,...) [NSString stringWithFormat:@"http://118.89.246.149:8181%@" fmt, url, ##__VA_ARGS__]
#endif

#define SM_Port @"8181"

#pragma mark 登录
#define SM_Url_Login SM_Host(@"/api/live/login",)

#pragma mark 获取用户信息
#define SM_URL_GetUserInfo SM_Host(@"/api/live/getUserinfo",)

#pragma mark 获取直播分类
#define SM_Url_GetCatalogue SM_Host(@"/api/live/getCatalogue",)

#pragma mark 发起直播
#define SM_Url_Startlive SM_Host(@"/api/live/startlive",)

#pragma mark 关闭直播
#define SM_Url_Endlive SM_Host(@"/api/live/endlive",)

#pragma mark 获取最新消息提醒
#define SM_Url_GetNoticeMsg SM_Host(@"/api/live/getNoticeMsg",)

#endif /* SMUrlMacro_h */
